<link rel="stylesheet" href="__TMPL__Public/assets/css/swiper.min.css">
<script src="__TMPL__Public/assets/js/swiper.min.js" type="text/javascript"></script>
<div class="swiper-container">
    <div class="swiper-wrapper">
        <volist name="slides" id="vo">
            <div class="swiper-slide" style="background: url('__UPLOAD__{$vo.slide_pic}') no-repeat;background-size:100% 100%; "></div>
        </volist>
    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
</div>
<script>
    //轮播图
    var swiper = new Swiper('.swiper-container', {
        // 轮播图的方向，也可以是vertical方向
        direction:'horizontal',
        //播放速度
        loop: true,
        // 自动播放时间
        autoplay:2000,
        // 播放的速度
        speed:2000,
        autoplayDisableOnInteraction : false,
        pagination: '.swiper-pagination',
        paginationClickable: true
    });
</script>